
package ciicos.check.service;

import ciicos.check.entity.CheckItemsEntity;
import ciicos.check.entity.CheckPlanEntity;
import ciicos.check.entity.CheckPlanItemEntity;
import ciicos.check.entity.CheckPlanTimeEntity;
import ciicos.check.model.checkplan.CheckPlanForm;
import ciicos.check.model.checkplan.CheckPlanPagination;
import ciicos.equ.entity.EquPointEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 巡检计划
 * 版本： V3.2.0
 * 版权：
 * 作者： 产研项目租
 * 日期： 2023-08-16
 */
public interface CheckPlanService extends IService<CheckPlanEntity> {


    List<CheckPlanEntity> getList(CheckPlanPagination checkPlanPagination);

    List<CheckPlanEntity> getTypeList(CheckPlanPagination checkPlanPagination, String dataType);


    CheckPlanEntity getInfo(String id);

    void delete(CheckPlanEntity entity);

    void create(CheckPlanEntity entity);

    boolean update(String id, CheckPlanEntity entity);

    //  子表方法
    List<CheckPlanItemEntity> getCheckPlanItemList(String id, CheckPlanPagination checkPlanPagination);

    List<CheckPlanItemEntity> getCheckPlanItemList(String id);

    List<CheckPlanTimeEntity> getCheckPlanTimeList(String id, CheckPlanPagination checkPlanPagination);

    List<CheckPlanTimeEntity> getCheckPlanTimeList(String id);

    //列表子表数据方法

    //验证表单
    String checkForm(CheckPlanForm form, int i);

    List<CheckPlanEntity> getListByEnable();

    List<EquPointEntity> findPointByEquId(String equId);

    List<CheckItemsEntity> findDescById(String equId);

}
